package com.vicente.managerdemo.service.impl;

import com.alibaba.fastjson2.JSON;
import com.vicente.managerdemo.mapper.DemoMapper;
import com.vicente.managerdemo.service.DemoService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.Map;

/**
 * @author vicente
 */
@Service
public class DemoServiceImpl implements DemoService {

    @Resource
    public DemoMapper demoMapper;

    @Override
    public  String getDataStr(String id) {
        Map map = demoMapper.selectDemo(id);
        return JSON.toJSONString(map);
    }
}
